package per.kongtouxu.service;

import org.apache.ibatis.annotations.Param;
import per.kongtouxu.domain.pojo.Admin;
import per.kongtouxu.domain.pojo.AdminLog;
import per.kongtouxu.domain.pojo.PageBean;
import per.kongtouxu.domain.vo.V_Admin;

public interface AdminService {
    //根据账户密码查询admin
    public Admin login(Admin admin);
    //分页查询
    public PageBean<V_Admin> findAdminByPage(String adminName, Integer roleId, String startTime, String endTime,int currentPage,int pageSize);
    //保存用户
    public Integer saveAdmin(Admin admin, AdminLog adminLog);
    //更新后台用户
    public Integer updateAdmin( Admin admin,AdminLog adminLog);
    //根据AdminId查询Admin
    public Admin findAdminByAdminId( Integer adminId);
}
